
package com.zhitan.ems.app.iot.wrapper;
import com.zhitan.ems.app.iot.entity.ProductEntity;
import com.zhitan.ems.app.iot.vo.ProductVO;
import com.zhitan.ems.common.extra.utils.BeanUtil;
import com.zhitan.ems.framework.core.mp.base.BaseEntityWrapper;
  /**
 * 产品 包装类,返回视图层所需的字段
 * @author zhitan
 * 
 * @date 2025-09-19 22:15:46
 */
public class ProductWrapper extends BaseEntityWrapper<ProductEntity, ProductVO>  {
    public static ProductWrapper build() {
        return new ProductWrapper();
    }
	@Override
	public ProductVO entityVO(ProductEntity product) {
		if(product==null) {
			return null;
		}
		ProductVO productVO = BeanUtil.copy(product, ProductVO.class);
		return productVO;
	}

}
